﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using plas.core;
using plas.cps.api.entity;
using plas.core.entity;
///物品资源业务接口，完成
namespace plas.cps.api.services
{
    public interface IGoodsServices : IBaseService<GoodsEntity>
    {
        /// <summary>
        /// 修改/保存
        /// </summary>
        /// <param name="goods">物品资源数组</param>
        /// 
        void Save(params GoodsEntity[] goods);


        /// <summary>
        /// 删除物品信息
        /// </summary>
        /// <param name="pk">物品资源主键数组</param>
        void Delete(params string[] pks);

        /// <summary>
        /// 通过id查询
        /// </summary>
        /// <param name="pk">物品资源主键</param>
        GoodsEntity QueryGoodById(string pk);
        /// <summary>
        /// 多条件查询
        /// </summary>
        /// <param name="pageNum">当前页</param>
        /// <param name="pageSize">每页记录数</param>
        /// <param name="goods">物品资源实体</param>
        /// <param name="orderBy">键值对, 可以不赋值，参见实例 </param>
        /// <returns></returns>
        QueryResult<GoodsEntity> QueryList(int pageNum, int pageSize, GoodsEntity goods, Dictionary<string, string> orderBy);
      
             
    }
    
}
